//
// Created by Alex on 2021/12/1.
//

#ifndef GEOMAP_GEOPOLYLINE_H
#define GEOMAP_GEOPOLYLINE_H
#include "GeoObject.h"
#include "LonLat.h"
#include "GeoStyle.h"
#include "QList"

class GeoPolyLine :public GeoObject{
public:
    GeoPolyLine();
    void addPoint(LonLat) override;
    void addProperties(QString,QVariant) override;
    QVariant getPropertiesValue(QString key) override;
    void setStyle(GeoStyle*) override;
    void getScale() override;
    QList<LonLat> getData();
    double getR();
    double getG();
    double getB();
    double getLineWidth();
private:
    QList<LonLat> pts;
    QMap<QString,QVariant> properties;
    GeoStyle *lineStyle;
};


#endif //GEOMAP_GEOPOLYLINE_H
